package com.meihuak.cloud_ordering.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.util.Date;

@NoArgsConstructor//无参构造
@AllArgsConstructor//有参构造
@Data//编译时会自动生成get和set方法
public class Student {
    @TableId(type = IdType.AUTO)private Integer id;
    private String headimg;//头像
    private String openid;//openid
    private String no;//学号
    private String name;//昵称
    private String sex;//性别
    private Integer age;//年龄
    private String dormId;//宿舍号
    private String telephone;//电话
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;//创建日期

}
